<?php
/**
 * This file defines the core paths
 * Defines them as absolute paths to make sure that require_once works as expected
 */
//start defining constants first
//Directory seperator is a PHP pre-defined constant: \ for windows and / for unix
defined('DS')?null : define('DS', DIRECTORY_SEPARATOR);
$production="heb"; //whatever dir we are gonna name our siteroot when we go live, just called it heb for now
$local="taco1"; //using this for localhost, change all instances of $local to $production when you go live
$siteroot=realpath("../"); //change to ./ when live
//die($siteroot);
defined('SITE_ROOT')?null : define('SITE_ROOT', $siteroot.DS);
defined('LIB_PATH')? null: define('LIB_PATH', SITE_ROOT.'includes');

//other defenitions for urls these are all according to my local host on windows, u probably need to change as u see fit for ur working environment
// DS will not work properly for url paths on windows
defined('URL_PATH')? null: define('URL_PATH', 'public');
//defined('CSS_PATH')? null: define('CSS_PATH', URL_PATH.DS.'css');
defined('CSS_PATH')? null: define('CSS_PATH', 'css'); // local

//defined('JS_PATH')? null: define('JS_PATH', URL_PATH.DS.'js');
defined('JS_PATH')? null: define('JS_PATH', 'js');
//defined('IMG_PATH')? null: define('IMG_PATH', URL_PATH.DS.'images');
defined('IMG_PATH')? null: define('IMG_PATH', 'images');

//continue to load required files

//load config files first
require_once(LIB_PATH.DS.'config.php');

//load config functions next so that everything else can use them
require_once(LIB_PATH.DS.'functions.php');

//load core objects
require_once(LIB_PATH.DS.'session.php');
require_once(LIB_PATH.DS.'database.php');
require_once(LIB_PATH.DS.'database_object.php');

//load database related classes
require_once(LIB_PATH.DS.'user.php');
?>
